package com.ruoyi.activiti.listener.execute;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

/**
 * @description: 开始监听
 * @author: stone
 * @date: Created by 2023/2/12 18:03
 * @version: 1.0.0
 * @pakeage: com.ruoyi.activiti.listener
 */
@Slf4j
public class StartExecuteLister implements ExecutionListener {
    @Override
    public void notify(DelegateExecution delegateExecution) {
        log.info("定时启动====> {}",delegateExecution.getId());

        delegateExecution.setVariable("deptLeader","guanyu");
    }
}
